package com.blacktea.behavioralpatterns.visitorpattern;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @description: 折扣订单项目
 * @author: black tea
 * @date: 2023/3/26 22:41
 */
@Data
public class DiscountOrderItem implements OrderItem {

    /**
     * 折扣，例如88折，填88
     */
    private final BigDecimal discount;

    @Override
    public void accept(OrderVisitor visitor) {
        visitor.visit(this);
    }
}